home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 7131 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.0 KB

  1. Path: mail2news.demon.co.uk!gate.demon.co.uk
  2. From: Mike Gooder <mike@entire.demon.co.uk>
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: AmiTCP and threads
  5. Date: Tue, 9 Apr 96 13:23:58 GMT
  6. Organization: Microsoft free zone
  7. Message-ID: <9604091323.AA0009d@entire.demon.co.uk>
  8. References: <9604061820.AA00093@entire.demon.co.uk> <4k8u9p$2pa@news.xs4all.nl>
  9. X-NNTP-Posting-Host: gate.demon.co.uk
  10. X-Newsreader: TIN [AMIGA 1.3 950726BETA PL0]
  11. X-Mail2News-Path: relay-1.mail.demon.net!gate.demon.co.uk
  12.  
  13. Yvon Rozijn (yrozijn@xs4all.nl) wrote:
  14. :
  15. : void __saveds yourprocess(void)
  16. : {  struct Library *SocketBase;
  17. :    ...
  18. :    if(SocketBase=OpenLibrary("bsdsocket.library",0))
  19. :    {  ...
  20. :       /* do your TCP stuff here */
  21. :       somefunction(SocketBase,...)/* if you need to call other functions */
  22. :       ...
  23. :       CloseLibrary(SocketBase);
  24. :    }
  25. : }
  26. : void somefunction(struct Library *SocketBase,...)
  27. : {  ...
  28. : }
  29.  
  30. Simple eh ! why didnt i think of it ?
  31. tried it and it all works fine
  32.  
  33. Thanks to all who helped
  34.  
  35. Mike
  36.